gtkeventcontrollerscroll: Drop device type checks
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 28 Sep 2020 21:30:05 +0000 (23:30 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 28 Sep 2020 21:35:36 +0000 (23:35 +0200)
commit11e4a4696713bc70084e11f8ee3a1a127b03e01a
treef9723c6f36d128af6daf0c217e4a4d84f6ae5585
parent01ddc181f90c8d7c24404765c1547289c9aa628b
gtkeventcontrollerscroll: Drop device type checks

Kinetic scrolling (and begin/end tracking) broke with commit cab1dcb696
since the pointing device used on X11 does not get as much GdkInputSource
granularity as the source device used to have in GTK3.

Actually this is kinda pointless, devices incapable of smooth scroll
should send discrete events, without those devices in the picture, we
want kinetic scroll to apply on every other device capable of smooth
scroll, so just do that.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3210
gtk/gtkeventcontrollerscroll.c